<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>博客登录</title>
<link rel="stylesheet" type="text/css" href="/home/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="/home/css/demo.css" />
<!--必要样式-->
<link rel="stylesheet" type="text/css" href="/home/css/component.css" />
<!--[if IE]>
<script src="/home/js/html5.js"></script>
<![endif]-->
	@include("admin.public.script")
</head>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header">
					<canvas id="demo-canvas"></canvas>
					<div class="logo_box">
						<h3>欢迎你</h3>
						<form action="#" name="f" method="post">
							<div class="input_outer">
								<span class="u_user"></span>
								<input name="email" class="text" style="color: #FFFFFF !important" type="email" placeholder="请输入邮箱">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="password" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码">
							</div>
							<div class="mb2"><a class="act-but submit" href="javascript:;" onclick="sendEmail();" style="color: #FFFFFF">注册</a></div>
						</form>
					</div>
				</div>
			</div>
		</div><!-- /container -->

		<script type="text/javascript">
			function sendEmail() {
				//获取邮箱
				var email = $('input[name=email]').val();
				//获取密码
				var password = $('input[name=password]').val();
				//判断手机号是否为空
				if(!email){
					layer.msg('邮箱不能为空');
					return ;
				}
				//触发ajax,请求邮箱验证
				$.post('doregister',{'email':email,'user_pass':password,'_token':'{{ csrf_token() }}'},function (data) {
					if(data.status==0){
						layer.msg(data.message,{'time':1000,'icon':6});
					}else{
						layer.msg(data.message,{'time':1000,'icon':5});
					}
				});
			}
		</script>
		<script src="/home/js/TweenLite.min.js"></script>
		<script src="/home/js/EasePack.min.js"></script>
		<script src="/home/js/rAF.js"></script>
		<script src="/home/js/demo-1.js"></script>
		<div style="text-align:center;">
</div>
	</body>
</html>